﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace OrganizerLibrary.ConfigFile
{
    [ConfigurationCollection(typeof(FileProcessorConfigElement))]
    public class FileProcessorConfigCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new FileProcessorConfigElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((FileProcessorConfigElement) (element)).FileExtension;
        }
    }
}
